package io.acna.basedao.mybatis.service;

import io.acna.basedao.mybatis.core.QueryCondition;

import com.github.pagehelper.Page;

public interface IBaseService<T> {

	T findByName(String name);

	T findById(long id);

	Page<T> findList(QueryCondition condition);

	Page<T> findAll();

	T findUnique(QueryCondition condition);

	Long save(T entity);

	Long update(T entity);

	void remove(long id);

}
